<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="SciftbinftecnCreateDlg" widgetVar="SciftbinftecnCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreateSciftbinftecnTitle}">

            <h:form id="SciftbinftecnCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{sciftbinftecnController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_validaciontec}" for="validaciontec" />
                        <p:selectBooleanCheckbox id="validaciontec" value="#{sciftbinftecnController.selected.validaciontec}" title="#{myBundle.EditSciftbinftecnTitle_validaciontec}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_validaciontec}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_validaciondir}" for="validaciondir" />
                        <p:selectBooleanCheckbox id="validaciondir" value="#{sciftbinftecnController.selected.validaciondir}" title="#{myBundle.EditSciftbinftecnTitle_validaciondir}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_validaciondir}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_validacionugp}" for="validacionugp" />
                        <p:selectBooleanCheckbox id="validacionugp" value="#{sciftbinftecnController.selected.validacionugp}" title="#{myBundle.EditSciftbinftecnTitle_validacionugp}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_validacionugp}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{sciftbinftecnController.selected.fecharegistro}" title="#{myBundle.EditSciftbinftecnTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{sciftbinftecnController.selected.observaciones}" title="#{myBundle.CreateSciftbinftecnTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreateSciftbinftecnRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_sctptbperiodoid}" for="sctptbperiodoid" />
                        <p:selectOneMenu id="sctptbperiodoid" value="#{sciftbinftecnController.selected.sctptbperiodoid}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_sctptbperiodoid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sctptbperiodoController.items}"
                                           var="sctptbperiodoidItem"
                                           itemValue="#{sctptbperiodoidItem}"
                                           itemLabel="#{sctptbperiodoidItem.sctptbperiodoid.toString()}"
                                           />
                            <f:converter binding="#{sctptbperiodoConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_sctptbmesesid}" for="sctptbmesesid" />
                        <p:selectOneMenu id="sctptbmesesid" value="#{sciftbinftecnController.selected.sctptbmesesid}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_sctptbmesesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sctptbmesesController.items}"
                                           var="sctptbmesesidItem"
                                           itemValue="#{sctptbmesesidItem}"
                                           itemLabel="#{sctptbmesesidItem.sctptbmesesid.toString()}"
                                           />
                            <f:converter binding="#{sctptbmesesConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_sctbtbdatosgenid}" for="sctbtbdatosgenid" />
                        <p:selectOneMenu id="sctbtbdatosgenid" value="#{sciftbinftecnController.selected.sctbtbdatosgenid}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_sctbtbdatosgenid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbdatosgenController.items}"
                                           var="sctbtbdatosgenidItem"
                                           itemValue="#{sctbtbdatosgenidItem}"
                                           itemLabel="#{sctbtbdatosgenidItem.scthtbdatosgenid.toString()}"
                                           />
                            <f:converter binding="#{scthtbdatosgenConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreateSciftbinftecnLabel_pydgtbresponsaid}" for="pydgtbresponsaid" />
                        <p:selectOneMenu id="pydgtbresponsaid" value="#{sciftbinftecnController.selected.pydgtbresponsaid}" required="true" requiredMessage="#{myBundle.EditSciftbinftecnRequiredMessage_pydgtbresponsaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pydgtbresponsaController.items}"
                                           var="pydgtbresponsaidItem"
                                           itemValue="#{pydgtbresponsaidItem}"
                                           itemLabel="#{pydgtbresponsaidItem.pydgtbresponsaid.toString()}"
                                           />
                            <f:converter binding="#{pydgtbresponsaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{sciftbinftecnController.saveNew}" value="#{myBundle.Save}" update="display,:SciftbinftecnListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,SciftbinftecnCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="SciftbinftecnCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
